import Vue from 'vue'
import VueRouter from 'vue-router'
import detailInfo from '../components/detail'
import content from '../components/content'
import player from '../components/player'

Vue.use(VueRouter)

const routes = [
  { path:'/home', component: content },
  { path: '/detail:id', component: detailInfo },
  { path: '/player:id', component: player }
]

const router = new VueRouter({
  routes
})

export default router
